<?php
/* @var $this EmailtemplateController */
/* @var $model EmailTemplate */
/* @var $form CActiveForm */
?>

<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'id' => 'email-template-form',
    'type' => 'horizontal',
    'enableAjaxValidation' => false,
        ));
?>

<div class="control-group">
    <label class="control-label"></label>
    <div class="controls">
        <?php echo $model->help ?>
    </div>
</div>

<?php echo $form->errorSummary($model); ?>

<?php echo $form->textFieldRow($model, 'name', array('size' => 60, 'maxlength' => 255)) ?>

<?php echo $form->textFieldRow($model, 'subject', array('size' => 60, 'maxlength' => 255)) ?>
<?php echo $form->error($model, 'subject'); ?>

<div class="control-group">

    <label class="control-label">Content</label>

    <div class="controls">
        <?php
        $this->widget('ext.tinymce.TinyMce', array(
            'model' => $model,
            'attribute' => 'body',
            'fileManager' => array(
                'class' => 'ext.elFinder.TinyMceElFinder',
                'connectorRoute' => 'filemanager/connector',
            ),
            'htmlOptions' => array(
                'rows' => 6,
                'cols' => 60,
            )
        ));
        ?>
    </div>

</div>

<div class="form-actions">
    <p class="alert-info">Do Not Replace Variables Between [ ]</p>
    <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'primary', 'label' => 'Submit')); ?>
</div>


<?php $this->endWidget(); ?>